#include <stdio.h>
int main ()
{
	int n,a,b,c;
	scanf ("%d",&n);
	a=n%10;
	b=((n-a)/10)%10;
	c=(n-a-10*b)/100;
	printf ("%d %d %d",c,b,a);
	return 0;
}
